import java.util.Scanner;

public class Test2 {

    public static void main(String[] args) throws Exception {
        Scanner scanner = new Scanner(System.in);
        while (scanner.hasNext()) {
            String className = scanner.next();
            // print就是需要你定义的方法
//            print(className);
            print(Class.forName(className).newInstance());
            break;
        }
/*        String className = scanner.next();
        print(className);
        First f = new First();
        print(f);
         print(SB.class.newInstance());
        print(Class.forName("SB").newInstance());
        print(Class.forName("First").newInstance());*/
        //为什么这里会报错？应该与forname的参数类型有关——String类型
        /*print(Class.forName("First").s);*/
        //能否用forname获取这个类后访问其成员变量？
    }

    //这个print方法的参数是一个对象
    public static void print(Object obj) {
        System.out.print(obj.toString());
    }

}

class First {
    public String toString() {
        return "First";
    }
}

class Second {
    public String toString() {
        return "Second";
    }
}

class Third {
    public String toString() {
        return "Third";
    }
}
class DZ{
    public String toString(){
        return "一眼顶针";
    }
}